<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/1/9 0009
  Time: 9:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<a href="toUserAdd.jhtml">增加新用户</a>
<a href="toProjectAdd.jhtml">增加项目</a>
<table border="1" cellspacing="0" cellpadding="0">
    <c:forEach var="user" items="${p.data}">
        <tr>
            <td>${user.id}</td>
            <td>${user.userName}</td>
            <td>${user.name}</td>
            <td>${user.telephone}</td>
            <td>${user.unit}</td>
            <td>${user.landMark}</td>
            <td>${user.enterdate}</td>
            <td>
                <a href="toUser-update-${user.id}.jhtml">修改</a>
            </td>
        </tr>
    </c:forEach>
</table>
<p>
    <a href="usersearch.jhtml?page=1">首页</a>
    <a href="usersearch.jhtml?page=${p.page-1}">上一页</a>

    <a href="usersearch.jhtml?page=${p.page+1}">下一页</a>
    <a href="usersearch.jhtml?page=${p.totalPage}">末页</a>
</p>
</body>
</html>
